package com.vivimice.lotroller.demo;

import com.vivimice.lotroller.annotation.ListenAt;
import com.vivimice.lotroller.notification.NotificationAgent;
import com.vivimice.lotroller.notification.NotificationType;
import com.vivimice.lotroller.utils.NotificationUtils;

public class DemoUI {

	public static NotificationType SHOW_WELCOME;
	
	static {
		NotificationType.doAutoNaming(DemoUI.class);
	}
	
	public DemoUI(NotificationAgent agent) {
		// auto associate notification type
		NotificationUtils.associateListeners(agent, this);
	}
	
	@ListenAt("SHOW_WELCOME")
	public void showWelcome() {
		System.out.println(String.format("Welcome to the Lotroller Demo!"));
	}
	
}
